from api import create_app, socketio
from flask_cors import CORS
from api import db
from flask_migrate import Migrate

app = create_app()
migrate = Migrate(app, db)
CORS(app)

@app.route('/')
def index():
    return "《大小模型协同》后端启动成功！"

if __name__ == '__main__':
    # app.run(debug=True, host='0.0.0.0',port=80)
    socketio.run(app=app, debug=True,host='0.0.0.0', port=80)
